/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.bo.ExaminationQuestionOptionBO;
import com.xy.biz.ts.domain.query.ExaminationQuestionOptionQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-3-18
 */
public interface ExaminationQuestionOptionManager {

	/**
	 * 保存
	 *
	 * @param examinationQuestionOptionBO
	 */
	int saveExaminationQuestionOption(ExaminationQuestionOptionBO examinationQuestionOptionBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllExaminationQuestionOption(Collection<ExaminationQuestionOptionBO> collection);

	/**
	 * 更新
	 *
	 * @param examinationQuestionOptionBO
	 */
	int updateExaminationQuestionOption(ExaminationQuestionOptionBO examinationQuestionOptionBO);

	/**
	 * 删除
	 *
	 * @param examinationQuestionOptionId
	 */
	int deleteExaminationQuestionOption(Long examinationQuestionOptionId);

	/**
	 * 按照题删除选项
	 *
	 * @param examinationQuestionId
	 */
	int deleteExaminationQuestionOptionByExaminationQuestionId(Long examinationQuestionId);

	/**
	 * 查找一个
	 *
	 * @param examinationQuestionOptionId
	 * @return
	 */
	ExaminationQuestionOptionBO getExaminationQuestionOption(Long examinationQuestionOptionId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<ExaminationQuestionOptionBO> listExaminationQuestionOptionById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<ExaminationQuestionOptionBO> listExaminationQuestionOption(ExaminationQuestionOptionQuery query);

    List<ExaminationQuestionOptionBO> listExaminationQuestionOption(Collection<Long> examinationQuestionIds);

    /**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countExaminationQuestionOption(ExaminationQuestionOptionQuery query);

	/**
	 * 按主键删除记录
	 * @param examinationQuestionOptionIds
	 * @return
	 */
	int deleteExaminationQuestionOptionByIds(List<Long> examinationQuestionOptionIds);
}
